#!/usr/bin/python
import os

dest=open('build.py','w+')
list=open('list')

while 1:
	fn=list.readline()
	if fn=='': break
	f=open(fn[:len(fn)-1])
	print 'Processing',fn[:len(fn)-1]
	while 1:
		s=f.readline()
		if s=='': break
		dest.writelines([s])


list.close()
dest.close()

os.system('chmod +x build.py')
